/*
 *  Edge.h
 *  GraphPaper
 *
 *  Created by Olivier Namet on 20/04/2010.
 *  Copyright 2010 Home. All rights reserved.
 *
 */

#ifndef EDGE_H
#define EDGE_H

//#include "Port.h"
#include "Cell.h"

#include "GraphElement.h"

class Port;

class Edge : public GraphElement
{

public:
	Edge(Port *p1, Port *p2);
	
	Port *getPort(int i) {if(i==1){return p1;}else{return p2;}}
	void setPort(int i, Port *p) {if(i==0){p1=p;}else{p2=p;}}
	
	
private:
	static int edgeCount;
	
	Port *p1;
	Port *p2;
	



};


#endif